﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Omes.Services
{
    public class PageService:IPageService
    {
        public Model.Page GetPage(int pageid)
        {
            var ds = new DbServer();
            return ds.GetPage(pageid);
        }

        public List<Model.Page> GetChildPage(int pageid)
        {
            var ds = new DbServer();
            return ds.UseParentIdGetPages(pageid);
        }
    }
}
